package com.blacktry.service.impl;

import com.blacktry.entity.blog.ArticleSort;
import com.blacktry.mapper.blog.ArticleSortMapper;
import com.blacktry.service.ArticleSortService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author blackTry
 * @since 2022-02-07
 */
@Service
public class ArticleSortServiceImpl extends ServiceImpl<ArticleSortMapper, ArticleSort> implements ArticleSortService {
    @Override
    public int deleteArticleSort(Integer articleId) {
        return  this.baseMapper.deleteById(articleId);
    }

    @Override
    public Integer[] selectSortId(Integer articleId) {
        return this.baseMapper.selectSortId(articleId);
    }
}
